package micro.beauty.order.feign;

import micro.beauty.common.core.ResponseData;
import micro.beauty.common.core.constant.AppConstant;
import micro.beauty.order.feign.fallback.OrderFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
* @Author:         Liuliya
* @CreateDate:     2020/10/15 22:51
*/
@FeignClient(value = AppConstant.APPLICATION_ORDER_NAME, fallback = OrderFeignClientFallback.class)
public interface IOrderFeignClient {

    String API_PREFIX = "/order";

    @GetMapping(API_PREFIX + "/list")
    ResponseData list();

}
